package com.qijian.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

/**
 * 用户额外信息对象 sys_user_extra
 *
 * @author qijian
 * @date 2024-07-31
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("sys_user_extra")
public class UserExtra extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @TableId
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @Excel(name = "手机clienId")
    @ApiModelProperty(value = "手机clienId")
    private String clientId;

    @Excel(name = "用户账号")
    @ApiModelProperty(value = "用户账号")
    private String lastLoginTime;

    @Excel(name = "最后登录IP")
    @ApiModelProperty(value = "最后登录IP")
    private String loginIp;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "最后登录时间")
    private Date loginDate;

}
